package com.hs.sfzy.service.impl;

import com.hs.sfzy.entity.HeartTest;
import com.hs.sfzy.mapper.HeartTestMapper;
import com.hs.sfzy.service.HeartTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Collections;
import java.util.List;

/**
 * @ClassName HeartTestServiceImpl
 * @Description TODO
 * @Author QinKunPeng
 * @Date 2024年10月26日 15:31
 * @Version 1.0
 */
@Service
@Transactional
public class HeartTestServiceImpl implements HeartTestService {

    @Autowired
    HeartTestMapper heartTestMapper;

    @Override
    public List<HeartTest> getTestByHeartId(int heartId) {
        return heartTestMapper.getTestByHeartId(heartId);
    }

    @Override
    public List<HeartTest> getTestByHeartIds(Integer[] heartIds) {
        return heartTestMapper.getTestByHeartIds(heartIds);
    }

    @Override
    public int deleteById(int id) {
        return heartTestMapper.deleteById(id);
    }

    @Override
    public int deleteByHeartId(int heartId) {
        return heartTestMapper.deleteByHeartId(heartId);
    }

    @Override
    public int insert(HeartTest heartTest) {
        return heartTestMapper.insert(heartTest);
    }

    @Override
    public List<HeartTest> getAllHeartTest() {
        return heartTestMapper.getAllHeartTest();
    }

    @Override
    public int updateHeartTest(HeartTest heartTest) {
        return heartTestMapper.updateHeartTest(heartTest);
    }


}
